package org.com.action.user;



import org.com.dao.RegistDao;
import org.com.domain.User;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

@SuppressWarnings("serial")
public class UserRegSendAction extends ActionSupport implements Preparable, ModelDriven<User> {
	
	User user;
	RegistDao registDao;
	
	public User getUser() {
		return user;
	}
	
	/* execute */
	public String execute() throws Exception {
		
		registDao.registUser(user);
		/*LogTraceInfo.getLog().info(user);*/
		
		return SUCCESS;
	}
	
	public void prepare() throws Exception {
		user = new User();
		registDao = new RegistDao();
	}

	public User getModel() {

		return user;
	}
	
}
